using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WHXK;

namespace Web
{
    public partial class company : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if(Request.Params["eid"]!=null)
                BindGrid(Request.Params["eid"].ToString());
            }
        }

        protected void BindGrid(string eid)
        {
            WHXK.EnterPriseInfo epi = new EnterPriseInfo();
            DataSet ds = new DataSet();
            if (epi.getAllEnterPriseInfo(ref ds, " corp_id = ``" + eid + "``"))
            {
                this.fventerprise.DataSource = ds;
                this.fventerprise.DataBind();
            }
        }
        public string formatdate(string date)
        {
            if (date != null && date != "")
                return DateTime.Parse(date).ToString("yyyy-MM-dd");
            else
                return "";

        }
    }
}
